//
//  LYRefresh.h
//  LYRefresh
//
//  Created by boom on 2017/5/3.
//  Copyright © 2017年 boomLi. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "LYRefreshHeaderView.h"
#import "LYRefreshFooterView.h"

typedef void(^LYRefreshBlock)();

@interface LYRefresh : UIView

@property (nonatomic, strong) LYRefreshHeaderView * header;//刷新视图

@property (nonatomic, strong) LYRefreshFooterView * footer;//刷新视图

@property (nonatomic, strong) UIScrollView * scrollView;

@property (nonatomic, copy) LYRefreshBlock startBlock;//开始刷新

@property (nonatomic, copy) LYRefreshBlock endBlock;//结束刷新

@property(assign,nonatomic)BOOL isAutoEnd;//是否自动结束刷新 YES/NO 自动/手动

@property(assign,nonatomic)float refreshTime;//自动刷新的时间(秒为单位) 手动结束刷新时不设置此项

/**刷新完结束刷新*/
-(void)hide;

@end
